Path: blob/master/src/packages/next/pages/auth/password-reset/[id].tsx
1451 views
/*1* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45// Password reset page67import { Layout } from "antd";8import RedeemPasswordReset from "components/auth/redeem-password-reset";9import Footer from "components/landing/footer";10import Head from "components/landing/head";11import Header from "components/landing/header";12import { Customize } from "lib/customize";13import withCustomize from "lib/with-customize";1415export default function PasswordReset({ passwordResetId, customize }) {16return (17<Customize value={customize}>18<Head title={"Password Reset"} />19<Layout>20<Header page="sign-in" />21<Layout.Content style={{ backgroundColor: "white" }}>22<RedeemPasswordReset passwordResetId={passwordResetId} />23<Footer />24</Layout.Content>25</Layout>26</Customize>27);28}2930export async function getServerSideProps(context) {31const { id } = context.params;32return await withCustomize({33context,34props: { passwordResetId: id },35});36}373839